package org.ncibi.cytoscape.metscape.ui.table;

import java.awt.Component;

import javax.swing.JTable;
import javax.swing.table.DefaultTableCellRenderer;

@SuppressWarnings("serial")
public class ExtendedTableCellRenderer extends DefaultTableCellRenderer {
	public Component getTableCellRendererComponent (JTable table, Object value, boolean selected, boolean focused, int row, int column) {
		setEnabled(table == null || table.isEnabled());
		return super.getTableCellRendererComponent(table, value, selected, focused, row, column);
	}
}
